/* Layout for dokument-siden */

.page {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 1.8rem 2rem 2.1rem;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
    position: relative;
  }

  .page::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.6rem;
    bottom: 1.6rem;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(to bottom, var(--ama-red), var(--ama-sand));
  }

  .download-bar {
    margin: 0 0 1.3rem 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
  }

  .btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--ama-red-dark), var(--ama-red));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.17);
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
  }

  .btn-download:hover {
    filter: brightness(1.05);
    box-shadow: 0 11px 22px rgba(0, 0, 0, 0.2);
  }

  .btn-download:active {
    transform: translateY(1px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.18);
  }

  .download-meta {
    font-size: 0.85rem;
    color: #5d564f;
  }

  .download-meta a {
    color: var(--ama-red-dark);
    text-decoration: none;
    font-weight: 500;
  }

  .download-meta a:hover {
    text-decoration: underline;
  }

  /* Indholdsfortegnelse */
  .toc {
    margin: 0 0 1.6rem 0.4rem;
    padding: 0.9rem 1rem;
    background: #faf5ee;
    border-radius: 10px;
    border: 1px solid #e1d3b5;
  }

  .toc-title {
    margin: 0 0 0.3rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ama-red-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    columns: 2;
    column-gap: 2rem;
  }

  .toc li {
    margin-bottom: 0.15rem;
  }

  .toc a {
    color: var(--ama-text);
    text-decoration: none;
  }

  .toc a:hover {
    color: var(--ama-red-dark);
    text-decoration: underline;
  }

  @media (max-width: 700px) {
    .toc ul { columns: 1; }
  }

  /* Sektioner */

  .indhold-section {
    margin-left: 0.4rem;
    margin-bottom: 1.3rem;
  }

  .indhold-section h2 {
    margin: 0 0 0.35rem 0;
    font-size: 1.1rem;
    color: var(--ama-red-dark);
  }

  .indhold-section p {
    margin: 0.15rem 0;
    font-size: 0.95rem;
  }

  .note {
    margin-top: 0.4rem;
    padding: 0.5rem 0.65rem;
    background: #f8f2e9;
    border-left: 3px solid var(--ama-red);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #5b534c;
  }

  .logout-footer {
    margin-top: 0.5rem;
  }

  .logout-button {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    border: 1px solid #f4eee8;
    background: transparent;
    color: #f4eee8;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .logout-button:hover {
    background: rgba(244, 238, 232, 0.14);
  }

  /* Footer */

  footer {
    font-size: 0.85rem;
    color: #f4eee8;
    background: #2f2a27;
    text-align: center;
    padding: 0.9rem 2rem 1rem;
    border-top: 3px solid var(--ama-red-dark);
    margin-top: 1.5rem;
  }

  footer p {
    margin: 0.1rem 0;
  }

  /* Mobil-tilpasning */

  @media (max-width: 800px) {
    header {
      padding: 0.75rem 1.4rem;
    }

    main {
      padding: 1.7rem 1.2rem 2.2rem;
    }

    .page {
      padding: 1.6rem 1.4rem 1.9rem;
    }

    nav { display: none; } /* evt. senere mobilmenu */
  }
